/**
 * 获取浏览器宽度
 * @param {number}
 * @return {number}
 */
 export function innerWidth(Fn=function(){}) {
    window.onresize=function(){
      var clientHeight = window.innerWidth || document.body.innerWidth
      Fn(clientHeight)
      return
    }
    window.onload=function(){
      var clientHeight = window.innerWidth || document.body.innerWidth
      Fn(clientHeight)
      return
    }
    window.onunload=function(){
      var clientHeight = window.innerWidth || document.body.innerWidth
      Fn(clientHeight)
      return
    }
    var clientHeight = window.innerWidth || document.body.innerWidth
    Fn(clientHeight)
    return
  }